//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    cards:[
      {
        id: '1',
        title: '模特卡',
        type: 'MODEL',
        desc: '专业模卡让你获得更多通告机会'
      },
      {
        id: '2',
        title: '微模卡',
        type: 'MINI',
        desc: '在线模特-模特专属在线微名片'
      }
    ],
  },

  onLoad: function () {
  
  },

  toPage: function (e) {
    const page = e.currentTarget.dataset.page;
    const pages = {
      USAGE: 'usage',
      MODEL: 'card/template',
      MINI: 'card/mini',
      HOST: 'card/anchorwoman',
      ACTOR: 'card/actor'
    }
    wx.navigateTo({
      url: `/pages/${pages[page]}/index`,
    })
  }
})
